<?php echo form_open('setting/editposition',array('class'=>'form-horizontal','id'=>'frm'));?>
<fieldset>
    <legend><h4><?php echo $title;?></h4></legend>
    <div class="control-group">
    <label class="control-label">Title</label>
    <div class="controls">
      <input type="text" name="title" placeholder="Position" class="validate[required]" value="<?php echo $position['Title'];?>">
    </div>
  </div>
  <div class="control-group">
    <div class="controls">
      <label class="checkbox">
      	<?php 
      		if ($position['Activate']==1){
      			echo '<input name="activate" checked="checked" type="checkbox"> Active';	
      		}else{
      			echo '<input name="activate" type="checkbox"> Active';
      		}
      		echo form_hidden('PositionID',$position['PositionID']);
      	?>
      </label>
      <button type="submit" name="submit" class="btn btn-primary">Save</button>
  	  <button type="button" class="btn btn-cancel">Cancel</button>
    </div>
  </div>
 </fieldset> 
<?php echo form_close();?>